package com.mcxx.modules.miniSalvation.order.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.InspectionUserWriteDao;
import com.mcxx.modules.miniSalvation.order.dto.InspectionUserDTO;
import com.mcxx.modules.miniSalvation.order.entity.InspectionUserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InspectionUserWriteService {

    @Autowired
    private InspectionUserWriteDao inspectionUserWriteDao;


    public int insert(InspectionUserEntity entity) {
        return inspectionUserWriteDao.insert(entity);
    }


    public int insertIgnoreNull(InspectionUserEntity entity) {
        return inspectionUserWriteDao.insertIgnoreNull(entity);
    }


    public int update(InspectionUserEntity entity) {
        return inspectionUserWriteDao.update(entity);
    }


    public int updateIgnoreNull(InspectionUserEntity entity) {
        return inspectionUserWriteDao.updateIgnoreNull(entity);
    }


    public int delete(InspectionUserEntity entity) {
        return inspectionUserWriteDao.delete(entity);
    }


    public void batchInsert(List<InspectionUserDTO> users) {
        inspectionUserWriteDao.batchInsert(users);
    }


    public void deleteByBatchId(String batchId) {
        inspectionUserWriteDao.deleteByBatchId(batchId);
    }
}
